﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PagingInTheBusinessLayer.aspx.cs" Inherits="Demos_PagingInTheBusinessLayer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
		<div>
			<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="ObjectDataSource1">
				<Columns>
					<asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True" SortExpression="Id" />
					<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
					<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
					<asp:BoundField DataField="MiddleName" HeaderText="MiddleName" SortExpression="MiddleName" />
					<asp:BoundField DataField="DateOfBirth" HeaderText="DateOfBirth" SortExpression="DateOfBirth" />
					<asp:BoundField DataField="FullName" HeaderText="FullName" ReadOnly="True" SortExpression="FullName" />
				</Columns>
			</asp:GridView>
			<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnablePaging="True" OldValuesParameterFormatString="original_{0}" SelectCountMethod="SelectCountForGetList" SelectMethod="GetList" TypeName="Spaanjaars.ContactManager.Bll.ContactPersonManager" />
		</div>
	</form>
</body>
</html>
